package com.luboyan.CBillbill.repository;

import com.luboyan.CBillbill.dao.file.Video;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * springData提供的数据操作类,类似于mybatisPlus，这里是与ES做交互
 */
public interface VideoRepository extends ElasticsearchRepository<Video, Long> {

    /**
     * 模糊查询视频，springData会拆解方法名例如这里
     * find, by->[字段名], like
     */
    Video findByTitleLike(String key);
}
